<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>判断奇数偶数</title>
		<script type="text/javascript">
			var data = prompt('请输入一个数字:');
			var temp = data % 2 == 0 ? '偶数' : '奇数';
			alert(data + '是' + temp)
		</script>
	</head>
	<body>
	</body>
</html>
